<?php

class View {

	function __construct(){

	}

	public function render($name,$adminPage = false,$noInclude = false) {
		
		if($noInclude == true){
			require 'Views/' . $name . '.php';
		}else if(!$adminPage){
			require 'Views/header.php';
			require 'Views/' . $name . '.php';
			require 'Views/footer.php';
		} else {
			require 'Views/control/header.php';
			require 'Views/' . $name . '.php';
			require 'Views/control/footer.php';
		}

	}
}
?>